package Application.UIEditApplication.manager
{
	import Application.UIEditApplication.def.Manager;
	import Application.UIEditApplication.xmlPrase.*;

	public class XMLManager
	{
		private var m_xmlGroup : Array = [];
		
		private function addXML(xmlClass : Class) : *
		{
			m_xmlGroup.push(new xmlClass);
			
			return m_xmlGroup[m_xmlGroup.length-1];
		}
		
		public function praseXML() : void
		{
			for(var i:int=0;i<m_xmlGroup.length;i++)
			{
				m_xmlGroup[i].prase();
			}
		}
		
		public function XMLManager(){ }
		
		public const Component : ComponentXML = addXML(ComponentXML);
		public const ComponentProperty : ComponentPropertyXML = addXML(ComponentPropertyXML);
	}
}